<include file="Public/mobile_head"/>
<link href="{:ADDON_PUBLIC_PATH}/card.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
<body>
<div id="container" class="container body">
    <div class="p_10 top_line">
        <h5 class="page_title"></h5>
        <!-- 表单 -->
        <form method="post" class="m_15">
            <!-- 基础文档模型 -->

            <div id="tab1" class="tab-pane">
                <div class="block_content_bg">
                    <div class="block_content_top">
                        <h6><img width="40px" src="{:ADDON_PUBLIC_PATH}/exchange.png" />微币积分互换</h6>
                    </div>
                    <div class="p_10">
                        <div class="form-item cf">
                            <label class="item-label">当前微币积分:</label>
                            <div class="single_item tb score_nav" style="background-color: #f0f0f0">
                                <a class="p_10 flex_1" href="javascript:">微币:<span id="wbspan">{$coin}</span></a>
                                <a class="p_10 flex_1 btr bbr" href="javascript:">积分:<span id="scspan">{$score}</span></a>
                            </div>
                            <span><b>备注：</b>满{$ecexam}微币才可兑换成积分, 积分兑微币不限额度</span>
                        </div>
                        <div class="form-item cf">
                            <label class="item-label">兑换类型:</label>
                            <select id="exchangetype">
                                <option value="wtc">微币兑积分</option>
                                <option value="ctw">积分兑微币</option>
                            </select>
                        </div>
                        <div class="form-item cf">
                            <label class="item-label">兑换比例: 1积分 = <span id="wbrate">{$rate}</span>微币</label>
                            <div class="tb">
                                <input type="number" id="fnum" class="text flex_1" ><span class="formspan">微币</span>  >>
                                <input type="number" id="tnum" class="txt_disabled flex_1" readonly style="margin-left: 10px" ><span class="formspan">积分</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-item pt_10">
                    <button class="home_btn submit-btn mb_10 flex_1" id="submit" type="button">确定兑换</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    var wbexchange = {
        wbtoexchange:"{:U('wbtoexchange')}"
    }
</script>
<script src="{:ADDON_PUBLIC_PATH}/scripts/wbexchange.js?v={:SITE_VERSION}"></script>
</body>
</html>
